Not sure if you can do this via the 'insert image' button but it's easily doable with a macro. You could create a document type with a media picker and textbox and use that?
When you insert images through the RTE there is an option to specify the alt text in the "insert image dialog". You fetch the alt text defined on the image in the media section here.
If you need to do so you will need to create a macro as alimac is saying above.
You can create a XSLT or Razor based macro, that can be inserted into the Rich text editor. It does not have anything to do with document types :)
When you have done so in the developer section you need to specify a parameter on the created macro of the type "mediaCurrent", which gives your users the option to choose an image from the media section. Based on the image id you get returned you can grab the image and the alt text in your XSLT or Razor code and make sure it's being inserted.
[RichTextEditor] Alt attribute in images
Hello,
We have created a property for the images (Media section) called "alt".
Is there any way to use this property when a user insert a picture with the RTE?
The alt attribute normally shows the name of the image but we need to update his behaviour to use our custom property.
Not sure if you can do this via the 'insert image' button but it's easily doable with a macro. You could create a document type with a media picker and textbox and use that?
What do you mean with using a macro? Inside the RTE?
I can´t create a new document type because in some of our DT the users need the RTE editor and insert pictures from it.
Hi Sergio
When you insert images through the RTE there is an option to specify the alt text in the "insert image dialog". You fetch the alt text defined on the image in the media section here.
If you need to do so you will need to create a macro as alimac is saying above.
You can create a XSLT or Razor based macro, that can be inserted into the Rich text editor. It does not have anything to do with document types :)
When you have done so in the developer section you need to specify a parameter on the created macro of the type "mediaCurrent", which gives your users the option to choose an image from the media section. Based on the image id you get returned you can grab the image and the alt text in your XSLT or Razor code and make sure it's being inserted.
I hope this makes sense.
/Jan
Thanks Jan.
I´ll try to do this with a macro. It seems smarter than my first idea that was explained in this other post: http://our.umbraco.org/forum/using/ui-questions/4406-Insert-of-image-description-in-RTE
is working on a reply...